home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / mac / source / music4c.sit / Music4C Folder / SFConvert folder / SFConvert.h < prev    next >
Text File  |  1990-06-25  |  2KB  |  72 lines

  1. #define        NIL            0L
  2. #define        MAXSTRING        128
  3. #define        SAMPBUFSZ        512
  4.  
  5. /* the following parameters are for MAC II monochrome screen */
  6. #define        WINMAX_x    512        /* max x of window */
  7. #define        WINMAX_y    460        /* max y of window */
  8.  
  9. #define        MK_LONG(x)    (*((long *)&(x)))
  10. #define        SAMPMAX            65535.0
  11. #define        SRATEMAX        312000        /* max sampling rate for Sound Acc. mono */
  12. #define        SRATEMIN        100
  13.  
  14. #define        APPLE_MENU        1
  15. #define        FILE_MENU        256
  16. #define        DISPLAY_DIALOG    260
  17. #define        SFRESOURCENUM    1000
  18.  
  19. /* items on apple menu */
  20. #define        AboutItem    1
  21.  
  22. /* items on file menu */
  23. #define        OPEN        1
  24. #define        QUIT        3
  25.  
  26.  
  27. #define        DRVR        0x44525652L    /* the string "DRVR" as a long */
  28.  
  29.  
  30. /* alert boxes */
  31. #define        ErrorAlert        401
  32.  
  33. /* dialog box numbers */
  34. #define        ABOUT_DIALOG    300
  35. #define        OUTPUT_FORMAT    500
  36.  
  37. /* play dialog button defaults */
  38. #define        PlayBut                1
  39. #define        CancelBut            2
  40. #define        EndSampBut            3
  41. #define        StartSampBut        4
  42. #define        SrateBut            5
  43. #define        NumberOfChannels    6
  44. #define        FileNameField        7
  45. #define        theUserItem            12    
  46.  
  47.  
  48. /* output format dialog button defaults */
  49. #define        OKButton            1
  50. #define        CancelButton        7
  51. #define        ILEAVEDitem            2
  52. #define        AIFFitem            3
  53. #define        SDitem                4
  54. #define        FLTitem                5
  55. #define        USERItem            6
  56. /* sound file types, also used for radio button nos. in upload dialog */
  57. #define        FLOAT                5
  58. #define        INT16                6
  59. #define        SD1                    8
  60. #define        SD2                    9
  61. #define        AIFF                10
  62.  
  63. #define        MAX(x,y)    (x) > (y) ? (x) : (y)
  64. #define        MIN(x,y)    (x) < (y) ? (x) : (y)
  65.  
  66.  
  67.  
  68.  
  69. void    SetProgressDialog(void);
  70. Boolean    UpdateProgressDialog(void);
  71. void    DisposeProgDialog(void);
  72.